package com.codewsq.springboot.controller;

import com.codewsq.springboot.service.UserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "登录管理")
@RestController
public class LoginController {

    @Autowired
    private UserService userService;

    @ApiOperation(value = "用户登录请求",notes = "用户登录参数不能为空",httpMethod = "GET")
    @PostMapping("/user/login")
    public boolean userLogin(@ApiParam(required = true, example = "0") @RequestParam("id") Integer id) {
        if (id == null) {
            return false;
        }
        return true;
    }

}
